From 8d44bf2ec822459c8516b183a523b22e5c9e7abb Mon Sep 17 00:00:00 2001 From: "maf46@burn.cl.cam.ac.uk" Date: Thu, 21 Apr 2005 17:30:34 +0000 Subject: [PATCH] bitkeeper revision 1.1340.1.2 (4267e33asTxlaqmSE5FbomPUak_0JQ) Shadow mode should (for now) *not* set the _PAGE_GLOBAL mode in any of the shadow page tables. Signed-off-by: michael.fetterman@cl.cam.ac.uk --- xen/include/asm-x86/shadow.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xen/include/asm-x86/shadow.h b/xen/include/asm-x86/shadow.h index 0ce0834f2a..fce84aac5a 100644 --- a/xen/include/asm-x86/shadow.h +++ b/xen/include/asm-x86/shadow.h @@ -590,7 +590,7 @@ static inline int l1pte_write_fault( ASSERT(l1e_get_flags(gpte) & _PAGE_RW); l1e_add_flags(&gpte, _PAGE_DIRTY | _PAGE_ACCESSED); - spte = l1e_create_pfn(gmfn, l1e_get_flags(gpte)); + spte = l1e_create_pfn(gmfn, l1e_get_flags(gpte) & ~_PAGE_GLOBAL); SH_VVLOG("l1pte_write_fault: updating spte=0x%p gpte=0x%p", l1e_get_value(spte), l1e_get_value(gpte)); @@ -623,7 +623,7 @@ static inline int l1pte_read_fault( } l1e_add_flags(&gpte, _PAGE_ACCESSED); - spte = l1e_create_pfn(mfn, l1e_get_flags(gpte)); + spte = l1e_create_pfn(mfn, l1e_get_flags(gpte) & ~_PAGE_GLOBAL); if ( shadow_mode_log_dirty(d) || !(l1e_get_flags(gpte) & _PAGE_DIRTY) || mfn_is_page_table(mfn) ) @@ -651,7 +651,7 @@ static inline void l1pte_propagate_from_guest( (_PAGE_PRESENT|_PAGE_ACCESSED)) && VALID_MFN(mfn = __gpfn_to_mfn(d, l1e_get_pfn(gpte))) ) { - spte = l1e_create_pfn(mfn, l1e_get_flags(gpte)); + spte = l1e_create_pfn(mfn, l1e_get_flags(gpte) & ~_PAGE_GLOBAL); if ( shadow_mode_log_dirty(d) || !(l1e_get_flags(gpte) & _PAGE_DIRTY) || -- 2.30.2